﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XZen.Cdn.Client.Blobs;

namespace XZen.Blogger
{

   
    public class Blog
    {
        public string ID { get; set; }
        public string Name { get; set; }
        public string Title { get; set; }
        public string Category { get; set; }
        public string Body { get; set; }
        public string User { get; set; }
        public string IP { get; set; }
    }
    public class Posting
    {
        public string ID { get; set; }
        public string BlogID { get; set; }
        public string Name { get; set; }
        public string Title { get; set; }
        public string Category { get; set; }
        public string Body { get; set; }
        public string Status { get; set; }
        public string User { get; set; }
        public string IP { get; set; }

        public List<Comment> Comments { get; set; }
        public List<Rating> Ratings { get; set; }
        public Posting()
        {
            Comments = new List<Comment>();
            Ratings = new List<Rating>();
        }
    }
    public class Comment
    {
        public string ID { get; set; }
        public string PostID { get; set; }
        public string Body { get; set; }
    }
    public class Rating
    {
        public string ID { get; set; }
        public string PostID { get; set; }
        public int Rate { get; set; }
    }
}
